<%-- 
    Document   : register
    Created on : 2009-4-6, 15:03:19
    Author     : 47
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<jsp:useBean id="register" scope="request" class="login.Register" />
<jsp:useBean id="login" scope="request" class="login.Login" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <%@include file="/main/head.jspf" %>
        <title>注册</title>
    </head>
    <body>
        <%
        String userName = request.getParameter("uname");
        register.setUserName(userName);
        String userPassword = request.getParameter("upassword");
        register.setUserPassword(userPassword);
        register.setHttpRequest(request);
        if (register.getRegisterResult()) {
            response.sendRedirect("/main/main.jsp");
        }
        if(userName==null){
            userName="";
            }
        %>
        <%@include file="/main/bodyhead.jspf" %>
        <table align="center" border="1" cellpadding="0" cellspacing="0" width="800px">
            <tr class="maintitle">
                <td style="text-align:left;border-right:none;"><jsp:getProperty name="login" property="time" /></td>
                <td style="text-align:right;">
                    <input type="text" style="border:none;background-color:transparent" value="<jsp:getProperty name="register" property="message" />">
                    </td>
            </tr>
            <tbody>
                <tr><td colspan="2">
                        <img src="../common/7-1a.jpg" width="800" height="450"/>
                    </td>
                </tr>
                <tfoot>
                    <form action="register.jsp" method="post">
                        <td colspan="2">
                            用户名:<input type="text" name="uname" value="Admin">
                            密&nbsp;&nbsp;码:<input type="password" name="upassword" value="admin">
                            <input type="submit" value="注册">
                        </td>
                    </form>
                </tfoot>
            </tbody>
        </table>
        <%@include file="/main/bodyfoot.jspf" %>
    </body>
</html>
